﻿<!--
/*
 * This file is part of SCWS.
 * SCWS is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 2 of the License, or
 * (at your option) any later version.
 * 
 * Foobar is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * You should have received a copy of the GNU General Public License
 * along with SCWS.  If not, see <http://www.gnu.org/licenses/>.
 */
 -->
<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="PartialMonitoringObject"
    targetNamespace="http://www.hardac.co.uk/webservices/scws/PartialMonitoringObject.xsd"
    elementFormDefault="qualified"
    xmlns="http://www.hardac.co.uk/webservices/scws/PartialMonitoringObject.xsd"
    xmlns:mstns="http://www.hardac.co.uk/webservices/scws/PartialMonitoringObject.xsd"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"
    attributeFormDefault="qualified"
>
  <xs:element name="Omws" msdata:IsDataSet="true">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="PartialMonitoringObject">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="AvailabilityLastModified" type="xs:dateTime" msdata:AllowDBNull="true" nillable="true" />
              <xs:element name="DisplayName" type="xs:string" />
              <xs:element name="FullName" type="xs:string" />
              <xs:element name="HealthState">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:enumeration value="Success" />
                    <xs:enumeration value="Warning" />
                    <xs:enumeration value="Error" />
                    <xs:enumeration value="Uninitialized" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Id">
                <xs:simpleType>
                  <xs:annotation>
                    <xs:documentation xml:lang="en-gb">
                      The representation of a GUID
                    </xs:documentation>
                  </xs:annotation>
                  <xs:restriction base="xs:string">
                    <xs:pattern value="\{[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}\}"/>
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="InMaintenanceMode" type="xs:boolean" />
              <xs:element name="IsAvailable" type="xs:boolean" />
              <xs:element name="LastModified" type="xs:dateTime" />
              <xs:element name="LeastDerivedNonAbstractMonitoringClassId">
                <xs:simpleType>
                  <xs:annotation>
                    <xs:documentation xml:lang="en-gb">
                      The representation of a GUID
                    </xs:documentation>
                  </xs:annotation>
                  <xs:restriction base="xs:string">
                    <xs:pattern value="\{[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}\}"/>
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="MaintenanceModeLastModified" type="xs:dateTime" msdata:AllowDBNull="true" nillable="true" />
              <xs:element name="ManagementGroupId" >
                <xs:simpleType>
                  <xs:annotation>
                    <xs:documentation xml:lang="en-gb">
                      The representation of a GUID
                    </xs:documentation>
                  </xs:annotation>
                  <xs:restriction base="xs:string">
                    <xs:pattern value="\{[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}\}"/>
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <!-- Removed as .Net DataSet does not support list as a simpletype :(
              <xs:element name="MonitoringClassIds">
                <xs:simpleType>
                  <xs:list>
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:pattern value="\{[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}\}"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:list>
                </xs:simpleType>
              </xs:element>-->
              <xs:element name="Name" type="xs:string" msdata:AllowDBNull="true" nillable="true" />
              <xs:element name="Path" type="xs:string" msdata:AllowDBNull="true" nillable="true" />
              <xs:element name="StateLastModified" type="xs:dateTime" msdata:AllowDBNull="true" nillable="true" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
  </xs:element>
</xs:schema>